#ifndef Triangle_h
#define Triangle_h

#include "Object.h"

class Triangle : public Object
{
private:
	Point p1, p2, p3;
	Vector normal;
	
public:

	Triangle(const Point &, const Point &, const Point &);
	bool intersection(Ray&, Intersection&) const;
	Vector getNormal (const Point&) const;
};

#endif
